package org.paysim.order.service;

import java.util.List;

import org.paysim.entity.OrderTable;
import org.paysim.order.model.OrderCreateRequest;
import org.paysim.order.model.OrderDetailResponseData;
import org.paysim.order.model.OrderResponseData;

import com.baomidou.mybatisplus.extension.service.IService;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jiajin
 * @since 2025-04-27
 */
public interface IOrderService extends IService<OrderTable> {
    OrderResponseData createOrder(@Valid OrderCreateRequest orderCreateRequest);

    List<OrderDetailResponseData> getOrderList(@NotNull @Valid String userId);

    void updateOrderStatus(String orderId, String orderStatus);

    String queryOrderStatus(String orderId);
}
